package lab02.test11;

public class Test11 {
    public static void main(String[] args) {
        Rectangle a=new Rectangle();
        System.out.println("长方形：");
        a.side1=12;
        a.side2=4;
        a.printMyWay();
        System.out.println();

        Square b=new Square();
        System.out.println("正方形：");
        b.side1=2;
        b.side2=2;


        b.printMyWay();

    }
}
